from numpy import zeros, array
from math import sin, cos, pi
import math

def vertexAndEdge(x, y, z, lenx, leny, lenz):
    
    vertex = zeros(8*4, dtype='float32')
    
    vertex[0] = x
    vertex[1] = y
    vertex[2] = z
    vertex[3] = 1
    
    vertex[4] = x + lenx
    vertex[5] = y
    vertex[6] = z
    vertex[7] = 1    

    vertex[8] = x 
    vertex[9] = y + leny
    vertex[10] = z
    vertex[11] = 1      
    
    vertex[12] = x + lenx
    vertex[13] = y + leny
    vertex[14] = z
    vertex[15] = 1      
    
    vertex[16] = x
    vertex[17] = y 
    vertex[18] = z + lenz
    vertex[19] = 1  
    
    vertex[20] = x + lenx
    vertex[21] = y 
    vertex[22] = z + lenz
    vertex[23] = 1      
    
    vertex[24] = x
    vertex[25] = y + leny
    vertex[26] = z + lenz
    vertex[27] = 1    
    
    vertex[28] = x + lenx
    vertex[29] = y + leny
    vertex[30] = z + lenz
    vertex[31] = 1       
    
    edge = [0,1,2,
            0,2,3,
            0,1,5,
            0,4,5,
            0,2,6,
            0,4,6,
            7,2,6,
            7,2,3,
            7,4,6,
            7,4,5,
            7,3,1,
            7,5,1]
    edge = array([0,1,2,
            0,2,3,
            0,1,5,
            0,4,5,
            0,2,6,
            0,4,6,
            7,2,6,
            7,2,3,
            7,4,6,
            7,4,5,
            7,3,1,
            7,5,1],dtype='uint32')
    return vertex,edge
    
    
    
    
    
    
    
        